<template>
    <el-main>
        <el-main class="ep-body">
            <epl-top-bar :datas="{formData:form}" showPerson psTagType="PERSON_AAB001_GROUP"
                         personType="PERSON_AAC031_12" :panel="panel">
            </epl-top-bar>
            <epl-userMessage dataType="person" idCount="2" :panel="panel">
                <epl-userMessageItem title="当前核定视同缴费年限" :money="false" :sum="(form.aae200.value).split('-')[0]+'年'+(form.aae200.value).split('-')[1]+'月'">
                    <epl-column label="上次视同缴费年限" :value="(form.aae200s.value).split('-')[0]+'年'+(form.aae200s.value).split('-')[1]+'月'"></epl-column>
                    <epl-column label="实际缴费年限" :value="(form.aae201.value).split('-')[0]+'年'+(form.aae201.value).split('-')[1]+'月'"></epl-column>
                    <epl-column label="累计缴费年限" :value="(form.totalyears.value).split('-')[0]+'年'+(form.totalyears.value).split('-')[1]+'月'"></epl-column>
                </epl-userMessageItem>
            </epl-userMessage>
            <el-card class="ep-card">
                <ep-title>请输入资格认证信息</ep-title>
                <el-form :model="form" ref="form" :rules="rules">
                    <el-row :gutter="10">
                        <ep-dateYMD
                            type="YY-MM"
                            colspan="8"
                            isChange
                            rules="this.$localRules.checkYM"
                            label="视同缴费年限"
                            name="aae200"
                            :property="form.aae200"
                            p="R"
                            :datas="{formData: form}"
                        ></ep-dateYMD>
                        <ep-dateYMD
                            type="YY-MM"
                            colspan="8"
                            isChange
                            rules="this.$localRules.checkYM"
                            label="实际缴费年限"
                            name="aae201"
                            :property="form.aae201"
                            p="D"
                            :datas="{formData: form}"
                        ></ep-dateYMD>
                        <ep-dateYMD
                            type="YY-MM"
                            colspan="8"
                            isChange
                            label="累计缴费年限"
                            name="totalyears"
                            :property="form.totalyears"
                            p="D"
                            :datas="{formData: form}"
                        ></ep-dateYMD>
                        <ep-dateYMD
                            type="YY-MM"
                            colspan="8"
                            label="上次视同缴费年限"
                            name="aae200s"
                            :property="form.aae200s"
                            p="H"
                            :datas="{formData: form}"
                        ></ep-dateYMD>
                    </el-row>

                    <el-row type="flex" justify="center">
                        <ep-saveButton id="doSave" type="primary" top="30" bottom="20" ref="save" @formValidate="formValidate"
                                       :validate="['form']"
                                       :datas="{formData: form,panel:panel}"></ep-saveButton>
                    </el-row>
                </el-form>
            </el-card>
        </el-main>
    </el-main>
</template>

<script src="../js/DeemedYearConfirmJS.js"></script>
